package com.hongyue.dey06;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.util.Scanner;

public class denglu {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入账号");
        String zh = sc.nextLine();
        System.out.println("请输入密码");
        String mm = sc.nextLine();
        Socket s = new Socket("192.168.67.51",10086);
        OutputStream os = s.getOutputStream();
        os.write((zh+","+mm).getBytes());
        InputStream is = s.getInputStream();
        byte[] bys = new byte[1024];
        int read = is.read(bys);
        System.out.println(new String(bys, 0, read));
        is.close();
        os.close();
        sc.close();
    }
}
